﻿using EkStudio.com.bean.xml.BillModule;
using EkStudio.com.bean.xml.RootInterface.DataSource;
using EkStudio.com.bean.xml.RootInterface.FieldEvent;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EkStudio.com.bean.xml.RootInterface
{
    public interface BillFormatModule:BillObjectInterface
    {
        /// <summary>
        /// 获取单据Key
        /// </summary>
        /// <returns></returns>
        string getKey();
        /// <summary>
        /// 获取单据caption
        /// </summary>
        /// <returns></returns>
        string getCaption();
        /// <summary>
        /// 设置单据只读属性
        /// </summary>
        /// <param name="read"></param>
        void setReadOnly(bool read);
        /// <summary>
        /// 获取单据只读属性
        /// </summary>
        /// <returns></returns>
        bool isReadOnly();
        /// <summary>
        /// 单据类型
        /// </summary>
        /// <returns></returns>
        int getBillType();

        string getJavaPackage();

        /// <summary>
        /// 多语言
        /// </summary>
        /// <returns></returns>
        string getLanguageText();

        /// <summary>
        /// 数据源
        /// </summary>
        BillSourceRoot DataSource
        {
            get;
            set;
        }

        BillDataFillRoot DataFill
        {
            get;
            set;
        }

        BillUiGroupRoot UiField
        {
            get;
            set;
        }
        /// <summary>
        /// 获取版本
        /// </summary>
        /// <returns></returns>
        string getVersion();


    }
}
